<?php 
/* SVN FILE: $Id$ */
/* Event Test cases generated on: 2009-04-24 21:04:28 : 1240608028*/
App::import('Model', 'Event');

class EventTestCase extends CakeTestCase {
	var $Event = null;
	var $fixtures = array('app.event');

	function startTest() {
		$this->Event =& ClassRegistry::init('Event');
	}

	function testEventInstance() {
		$this->assertTrue(is_a($this->Event, 'Event'));
	}

	function testEventFind() {
		$this->Event->recursive = -1;
		$results = $this->Event->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Event' => array(
			'id'  => 'Lorem ipsum dolor sit amet',
			'name'  => 'Lorem ipsum dolor sit amet',
			'datestart'  => '2009-04-24',
			'dateend'  => '2009-04-24',
			'description'  => 'Lorem ipsum dolor sit amet',
			'created'  => '2009-04-24 21:20:28',
			'modified'  => '2009-04-24 21:20:28'
		));
		$this->assertEqual($results, $expected);
	}
}
?>